import * as TYPES from "../actionType.js"
let initState = {
    carList:[
        {
            title:'海盐焦糖味冰雪-中杯',
            id:'001',
            num:1,
            price:15,
            img:require("../../img/st (9).jpg").default,
            info:'1x海盐焦糖味冰雪'
        },
        {
            title:'海盐焦糖味冰雪-中杯',
            id:'001',
            num:1,
            price:15,
            img:require("../../img/st (9).jpg").default,
            info:'1x海盐焦糖味冰雪'
        },
        {
            title:'海盐焦糖味冰雪-中杯',
            id:'001',
            num:1,
            price:15,
            img:require("../../img/st (9).jpg").default,
            info:'1x海盐焦糖味冰雪'
        },
        {
            title:'海盐焦糖味冰雪-中杯',
            id:'001',
            num:1,
            price:15,
            img:require("../../img/st (9).jpg").default,
            info:'1x海盐焦糖味冰雪'
        },
        {
            title:'海盐焦糖味冰雪-中杯',
            id:'001',
            num:1,
            price:15,
            img:require("../../img/st (9).jpg").default,
            info:'1x海盐焦糖味冰雪'
        }
    ]
}
function Car(state = initState, action) {
    state = JSON.parse(JSON.stringify(state))
    switch (action.type) {
        case TYPES.CAR_LIST:
            console.log(action)
            break;
    }
    return state
}
export default Car